MySQL
The MySQL
class provides a driver implementation for interacting with a MySQL database. It supports connection pooling, transactional operations, and executing SQL queries.
The connection URL should follow the nex pattern, as described by MySQL.
The generic format of the connection URL: mysql:///database?properties
Parameters
The connection URL for the MySQL database.
The username for authenticating with the database.
The password for authenticating with the database.
The optional configuration for the connection pool, such as min/max connections and timeout settings.
Constructors
Types
A concrete implementation of the Connection
interface that manages a single database connection while ensuring thread-safety and proper lifecycle handling.
Represents a transaction implementation that provides functionality for managing and executing operations within a transactional context.